/// Author: QP
/// Version: 1.0
/// Date:2021/07/01
/// 检查报告章节表
/// 《检查记录》需要
Class HCC.SQL.Document.CheckReport Extends (%Persistent, %XML.Adaptor, HCC.SQL.Base) [ CompileAfter = HCC.SQL.Base ]
{

Parameter SectionCode;

Parameter SectionName = "检查报告";

Parameter SectionCodeSystemOID;

Parameter SectionCodeSystem;

/// 文档编号 (同时作为Idkey)
Property DocumentNo As %String(XMLPROJECTION = "NONE");

Index IdDocNo On DocumentNo [ IdKey, Unique ];

/// 建立与HCC.SQL.Document.Header的外键
ForeignKey FKDocument(DocumentNo) References HCC.SQL.Document(IdKey);

/// 检查报告结果-客观所见
Property objective As WS.DE.DE045013100 [ SqlFieldName = obj ];

/// 检查报告结果-主观提示
Property subjective As WS.DE.DE045013200 [ SqlFieldName = sub ];

/// 检查报告科室
Property dept As WS.DE.DE081002600 [ SqlFieldName = dept ];

/// 检查报告机构名称
Property org As WS.DE.DE081001300 [ SqlFieldName = org ];

/// 检查报告备注
Property notes As WS.DE.DE060017900 [ SqlFieldName = notes ];


}
